package pcjavanet.mobilesell.persistence;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import pcjavanet.mobilesell.model.Employee;
import pcjavanet.mobilesell.model.EmployeeExample;
import pcjavanet.mobilesell.model.PageBean;

public interface EmployeeMapper {
    int countByExample(EmployeeExample example);

    int deleteByExample(EmployeeExample example);

    int deleteByPrimaryKey(Integer dbid);

    int insert(Employee record);

    int insertSelective(Employee record);

    List<Employee> selectByExample(EmployeeExample example);

    Employee selectByPrimaryKey(Integer dbid);

    int updateByExampleSelective(@Param("record") Employee record, @Param("example") EmployeeExample example);

    int updateByExample(@Param("record") Employee record, @Param("example") EmployeeExample example);

    int updateByPrimaryKeySelective(Employee record);

    int updateByPrimaryKey(Employee record);

    List<Employee> getOnePageBeans(@Param("example") EmployeeExample example, @Param("pageBean") PageBean pageBean);

    int getTotalRecords(@Param("example") EmployeeExample example, @Param("pageBean") PageBean pageBean);

    List<Employee> selectByExamplePage(@Param("example") EmployeeExample example, @Param("pageBean") PageBean pageBean);
}